package com.haizhi.crm.biz.model;

import com.haizhi.crm.biz.constant.MessageSourceType;
import com.haizhi.crm.common.model.BaseDo;
import lombok.Data;

import javax.persistence.*;

/**
 * Created by wangshan on 2018/5/18.
 */
@Data
@Entity
@Table(name = "ts_message_user_resource" )
public class MessageUserResourceDo extends BaseDo {

    @Column(name = "msg_user_id" )
    private Long messageUserId;

    @Column(name = "source_type" )
    @Enumerated(EnumType.STRING)
    private MessageSourceType messageSourceType;

    public Long getMessageUserId() {
        return messageUserId;
    }

    public void setMessageUserId(Long messageUserId) {
        this.messageUserId = messageUserId;
    }

    public MessageSourceType getMessageSourceType() {
        return messageSourceType;
    }

    public void setMessageSourceType(MessageSourceType messageSourceType) {
        this.messageSourceType = messageSourceType;
    }
}
